import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from './router';
import Print from 'vue-print-nb'
import "./mock/index.js";
import axios from 'axios';
import store from "./store"
// import VueI18n from 'vue-i18n'
// import i18n from './assets/i18n'

import {
  deepClone,
  handleTree,
  parseShortTime
} from "@/utils/index";

import Avue from '@smallwei/avue';
import '@smallwei/avue/lib/index.css';
import AvueMap from 'avue-plugin-map';

Vue.prototype.parseShortTime = parseShortTime;
Vue.prototype.deepClone = deepClone;
Vue.prototype.handleTree = handleTree;
Vue.prototype.$axios = axios;

Vue.use(ElementUI)
Vue.use(Print)
// Vue.use(VueI18n)
// Vue.use(i18n)
Vue.use(Avue);
Vue.use(AvueMap);

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router, //挂在路由
  // i18n,
  store,
  render: h => h(App),
}).$mount('#app')